package com.whf.enums;

import lombok.Getter;

/**
 * Created by Administrator on 2018/7/13 0013.
 */
@Getter
public enum ResultEnum {
    SUCCESS_CANCEL(0,"取消订单成功"),
    FAIL_DETAIL(1,"查询订单详情失败"),
    SUCCESS_DETAIL(2,"查询订单详情成功"),
    FAIL_FINISH(3,"完结订单失败"),
    SUCCESS_FINISH(4,"完结订单成功"),
    FAIL_PRODUCT_LIST(5,"获取商品列表失败"),
    ERROR_PRODUCT_STATUS(6,"商品状态不正确"),
    SUCCESS_PRODUCT_STATUS(7,"商品状态更新成功"),
    SUCCESS_PRODUCT_SAVE(8,"保存商品成功"),
    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_STOCK_ERROR(11,"库存不足"),
    ORDER_NOT_EXIST(12,"订单不存在"),
    ORDER_NOT_DETAIL(13,"订单中不存在详情"),
    ORDER_ERROR_STATUS(14,"订单状态不正确"),
    ORDER_FAIL_UPDATE(15,"订单更新失败"),
    ORDER_DETAIL_EMPTY(16,"订单中无商品信息"),
    PAY_FAIL_STATUS(17,"订单支付状态不正确"),
    ORDER_ERROR_PARAMS(18,"订单参数不正确"),
    ORDER_ERROR_BUYER(19,"订单不属于该买家"),
    WECHAT_ERROR_MP(20,"微信公众号信息错误"),
    SUCCESS_CATEGORY_LIST(21,"取货商品类目成功"),
    FAIL_UPDATE_CATEGORY(22,"更新类目失败"),
    SUCCESS_SAVE_CATEGORY(23,"类目更新成功"),
    FAIL_LOGIN(24,"登陆错误"),
    SUCCESS_LOGOUT(25,"登出成功"),
    ;
    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
